package com.bcmusic.order.feign;

import com.bcmusic.order.pojo.OrderCart;
import entity.Result;
import entity.StatusCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @author yg
 */
@FeignClient("order")
@RequestMapping("/orderCart")
public interface OrderCartFeign {
    /**
     *支付成功时查询应该添加的授权信息,后台调用
     *未测试
     * @return
     */
    @ApiIgnore
    @GetMapping("getOrderCartListByOrderId")
    public Result<List<OrderCart>> getOrderCartListByOrderId(@RequestParam Integer orderId);
}
